package gomenu

import (
	"gitee.com/ichub/goconfig/common/base/baseiface"
	"gitee.com/ichub/goconfig/common/basedi"
)

const singleNameGomenuFactroy = "GomenuFactroy"

// init
// register
// load
func init() {
	registerBeanGomenuFactroy()
}

// register GomenuFactroy
func registerBeanGomenuFactroy() {
	basedi.RegisterLoadBean(singleNameGomenuFactroy, LoadGomenuFactroy)
}

func FindBeanGomenuFactroy() *GomenuFactroy {
	return basedi.FindBean(singleNameGomenuFactroy).(*GomenuFactroy)
}

func LoadGomenuFactroy() baseiface.ISingleton {
	return NewGomenuFactroy()
}
